import request from "@/utils/request";

export const disinfectTask = {
  query(id) {
    return request({
      url: "/robot-disinfect-task/v1/" + id,
      method: "post",
    });
  },
  queryAll(params) {
    return request({
      url: "/robot-disinfect-task/v1/list",
      method: "get",
      params,
    });
  },
  create(data) {
    return request({
      url: "/robot-disinfect-task/v1/add",
      method: "post",
      data,
    });
  },
  update(data) {
    return request({
      url: "/robot-disinfect-task/v1/update",
      method: "put",
      data,
    });
  },
  delete(id) {
    return request({
      url: "/robot-disinfect-task/v1/" + id,
      method: "delete",
    });
  },
  control(data) {
    return request({
      url: "/robot-disinfect-task/control",
      method: "post",
      data,
    });
  },
  activation(id) {
    return request({
      url: "/robot-disinfect-task/activation/" + id,
      method: "get",
    });
  },
};
